@import '~less_base/common';

.mainMenu-modules.flex {
    .mainMenu-modules.vertical();
    display: flex;

    a {
        flex: 1;
    }

    .contactSeller span,
    .enterRaise span,
    .enterShop span {
        font-size: 12px;
    }
}

// 图标文字垂直排列
.mainMenu-modules.vertical {
    .menuItem {
        position: relative;
        flex-direction: column;
        height: 100%;
    }

    .toIdent {
        position: absolute;
        width: 1rem;
        left: 50%;
        top: -0.5rem;
        transform: translateX(-0.5rem);
        z-index: 10;
        .identIcon {
            width: 1rem;
            height: 1rem;
            background-size: 100% 100%;
        }
        .identText {
            font-size: 12px;
            color: #666;
            text-align: center;
            margin-top: 3px;
        }
    }

    .icon {
        position: absolute;
        top: 6px;
        width: 100%;
        text-align: center;
        line-height: 24px;
        font-size: 24px;

        //height: 26px;
        .iconImg {
            display: inline-block;
            width: 24px;
            height: 24px;
            background-size: 100% auto;
            background-repeat: no-repeat;
        }
    }

    .icon119 {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        text-align: center;
        background-size: 50px;
        background-repeat: no-repeat;
        background-position: center center;
    }

    .find .icon {
        font-size: 25px;
    }

    .text {
        &.active {
            color: #ab3b3a;
        }
        //position: absolute;
        padding-top: 30px;
        height: 24px;
        line-height: 24px;
        font-size: 12px;
        color: #666;
    }

    .redPoint {
        position: absolute;
        top: 4px;
        padding: 0;
        margin-left: 3px;
        left: 50%;
        width: 8px;
        height: 8px;
        border: 1px solid #fff;
        border-radius: 50%;
        background-color: #ef5350;
    }

    .unReadBubble {
        position: absolute;
        top: 5px;
        left: 50px;
        padding: 0 6px;
        background: rgba(239, 83, 80, 1);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 1);
        color: #fff;
        line-height: 18px;
        text-align: center;
        font-size: 10px;
    }

    .tips {
        position: absolute;
        top: -1.03rem;
        left: -64.8%;
        background-image: url('https://cdn.weipaitang.com/static/2018052480395425-0e80-454a-8314-0a241e025296-W405H168');
        background-size: 100%;
        background-repeat: no-repeat;
        width: 2.7rem;
        height: 1.12rem;
    }
}

.mainMenu-modules {
    width: 7.5rem;
    height: 50px;
    position: relative;
    left: auto;
    font-size: 12px;
    background-color: white;
    border-top: 1px solid #eaeae8;
    display: flex;

    &.activity11 {
        background-repeat: no-repeat;
        background-position: 0 center;
        background-image: url(https://cdn.weipaitang.com/static/201810248efdc5aa-7cce-4c16-a35f-56b3e5e25859-W750H100);
        background-size: cover;
        color: #ffffff;
        border-top: none;
    }

    .find.activity {
        background-size: 50px auto;
        background-position: center 0;
        background-repeat: no-repeat;
    }

    .numPoint {
        position: absolute;
        top: 4px;
        left: 52%;
        background: rgba(239, 83, 80, 1);
        border: 1px solid rgba(255, 255, 255, 1);
        padding: 0 5px;
        border-radius: 9px;
        height: 16px;
        line-height: 16px;
        background: rgba(239, 83, 80, 1);
        color: #fff;
        font-size: 10px;
        min-width: 7px;
        text-align: center;

        &.short {
            padding: 0 3px;
        }

        &.android {
            height: 16px;
            line-height: 18px;
        }
    }

    .menuItem {
        cursor: pointer;
        position: relative;
        width: 25%;
        float: left;
        color: #888;
        display: flex;
        justify-content: center;
        align-items: center;

        &.selected {
            color: #ab3b3a;
        }
    }

    a {
        font-size: 14px;
        position: relative;
    }

    .menuItem.raise,
    .menuItem.shop {
        width: 32%;
        height: 51px;
        float: right;
        margin-top: 0;
    }

    .menuItem.hasShop {
        // width: 23%;
    }

    .menuItem.enterRaise,
    .menuItem.enterShop.hasShop {
        // width: 33%;
        margin: 0 auto;
        line-height: 51px;
        white-space: nowrap;
    }

    .menuItem.contactSeller.hasShop {
        // width: 33%;
        margin: 0 auto;
        line-height: 51px;
        white-space: nowrap;
    }

    .menuItem.enterRaise {
        text-indent: 36px;
        color: #ab3b3a;
    }

    &.slotFlex {
        display: flex;

        > a {
            flex: 1;
            width: auto;
            color: #333;

            .icon {
                font-size: 20px;

                .icon-fm-index {
                    transform: translateY(-1px);
                }

                .icon-fm-shop {
                    font-size: 18px;
                }
            }
        }
    }

    .publish-tips {
        display: block;
        position: absolute;
        top: -10px;
        left: 0.25rem;
        transform: translateY(-100%);
        box-sizing: border-box;
        padding: 15px 10px 10px;
        background-color: #ff781d;
        font-size: 14px;
        border-radius: 4px;
        width: 7rem;
        z-index: 10;
        user-select: none;
        color: #ffffff;
        text-align: justify;

        .close {
            position: absolute;
            top: 0.1rem;
            right: 0.1rem;
            font-size: 0.24rem;
            transform: rotate(45deg);
        }

        .arrow {
            position: absolute;
            bottom: -18px;
            left: 50%;
            width: 0;
            height: 0;
            border-width: 10px;
            border-style: solid;
            border-color: #ff781d transparent transparent transparent;
            transform: translateX(-1.15rem);
        }
    }
}

.mainMenu-modules .menuItem.productLib .icon {
    font-size: 20px;
}

.mainMenu-modules .menuItem.productLibPublish .icon {
    font-size: 21px;
}
